package it.prova.uml.edit;

import it.prova.action.EntryUnitAction;
import it.prova.elementedit.EntryUnitTagCreator;

import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jst.jsf.common.dom.TagIdentifier;
import org.eclipse.jst.pagedesigner.editors.palette.IDropSourceData;
import org.eclipse.jst.pagedesigner.itemcreation.ITagCreator;
import org.eclipse.jst.pagedesigner.itemcreation.customizer.IDropCustomizer;
import org.eclipse.jst.pagedesigner.parts.ElementEditPart;
import org.eclipse.jst.pagedesigner.parts.NodeEditPart;
import org.w3c.dom.Element;


@SuppressWarnings("restriction")
public class MyElementEdit extends AbstractElementEdit {

	@Override
	public boolean handleModelChange
	(
		Element ele, 
		ElementEditPart part, 
		boolean recursive
	)
	{
		return true;
	}

	@Override
	public void fillContextMenu(IMenuManager contextMenu, Element ele)
	{
		return;
	}
	
	/**
	 * @return
	 * @uml.property  name="action"
	 */
	@SuppressWarnings("unused")
	private EntryUnitAction getAction()
	{
		return null;
	}

	


	@Override
	public IDropCustomizer getDropCustomizer(IDropSourceData dropSourceData)
	{
//		return new MyDropCustomizer(dropSourceData);
		return null;
	}

	@Override
	public ITagCreator getTagCreator(TagIdentifier tagId)
	{
//		return new MyTagCreator(tagId);
		return new EntryUnitTagCreator();
//		return super.getTagCreator(tagId);
	}

	@Override
	public boolean fillContainerContextMenu(IMenuManager contextMenu,
			ElementEditPart elePart, NodeEditPart nodePart,
			ISelection innerSelection) {
		// TODO Auto-generated method stub
		return false;
	}	

}
